<?php
/**
 * PHP By Example
 *
 * @copyright 2014 Michel Corne <mcorne@yahoo.com>
 * @license   http://www.opensource.org/licenses/gpl-3.0.html GNU GPL v3
 */
?>

<div class="title <?=$color;?>"><?=$title;?></div>

<div class="block <?=$color;?>_border">
  <?php foreach ($functions as $index => $function_name):?>

      <a class="<?=$color;?>" href="<?=$this->display_url('function', $function_name);?>"
      ><?=$function_name;?></a><?php if ($index != $last_index):?>,<?php endif;?>

  <?php endforeach;?>
</div>
